﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="DataLayer" namespace="DataLayer.Entities">
  <class name="User" table="[User]" >
    <id name="UserId">
      <generator class="identity" />
    </id>
    <many-to-one name="Role" column="RoleId" lazy="false" />
    <property name="Username" />
    <property name="Password" />
    <property name="Email" />
    <property name="Name" />
    <property name="CreatedDate" />
    <property name="ModifiedDate" />
    <property name="IsActive" />
    <property name="ActivationKey" />
    <property name="ApprovedByAdmin" />
    <property name="PrefersRandom" />
  </class>
</hibernate-mapping>